package com.ws.shop.dao;

import java.util.List;
import java.util.Map;

import com.ws.shop.bean.Page;
import com.ws.shop.entity.Address;
import com.ws.shop.entity.Loginlog;
import com.ws.shop.entity.Member;
import com.ws.shop.entity.Order;

public interface MemberDao {

	public int rebeat(final long oid,final int uid);

	public List<Member> findMemberListByRobot(int robot);

	public Member findMemberById(int id);
	
	public Page findMemberListPage(int pageno,int pagesize, String name, String mail,int robot);

	public List<Map<String,Object>> findHeadRandList(int size);

	public void saveOrUpdate(Member member);

	public List<Map<String, Object>> memberlogo();

	public void loginlog(Loginlog loginlog);

	public Object islogin(int userid);

	public boolean checkName(String name);

	public Object checkLogin(String mail, String password);

	public Object checkEmail(String email);
	
	public int updateUserPriority(int uid,int priority);
	
	public int saveAddress(Address address);
	
	public int getAddressCount(int uid);
	
	public Address getAddressById(final long id);
	
	public int updateAddressByid(Address address) ;
	
	public List<Address> getAddressByUid(long uid) ;
	
	public int delAddressById(long id) ;

	public int doExpoint(int uid);
	
	public int updateUsers(Member member);
	
	public int updateUserPassword(final int uid,final String oldpassword,final String newpassword);
	
	public int winersaysave(Order order,String word );
	
	public boolean isUserSunpic(long id,int uid);
	
	public int delImg(final long  id);
	
	public String toRegister(final Member member);

	public Member findMemberByName(String username);
	
	public List<Member>  getRobotByAuctionId(final long aid);
	
	public List<Member> getAllRobots(int robot);
	
	public List<Member> getChirlds(final int uid);
	
	public int updateHead(final String head, final int uid);
}
